package cn.chrisn.chainOfResponsibility;

/**
 * @Description
 * @Author Chrisn
 * @Date 2025/4/30
 */
public class Boss extends Handler{
    @Override
    public void process(Integer num) {
        if (num>=50&&num<=100){
            System.out.println("50-100的内容，老板来处理");
        } else if (nextHandler != null) {
            nextHandler.process(num);
        }
    }
}
